package com.shanghai3h.citygrid.api.config;

import com.shanghai3h.citygrid.api.repository.Impl.RejectSerivceImpl;
import com.shanghai3h.citygrid.api.repository.Impl.SolveServiceImpl;
import com.shanghai3h.citygrid.api.repository.Impl.TakeServiceImpl;
import com.shanghai3h.citygrid.api.repository.Impl.UserSeriveImpl;
import com.shanghai3h.citygrid.api.repository.RejectService;
import com.shanghai3h.citygrid.api.repository.SolveSerivce;
import com.shanghai3h.citygrid.api.repository.TakeService;
import com.shanghai3h.citygrid.api.repository.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class ApiConfig {

    @Bean
    public UserService getUserService(){
        return new UserSeriveImpl();
    }

    @Bean
    public TakeService getTakeService(){
        return new TakeServiceImpl();
    }

    @Bean
    public SolveSerivce getSolveService(){
        return new SolveServiceImpl();
    }

    @Bean
    public RejectService getRejectSerivce(){
        return new RejectSerivceImpl();
    }
}
